﻿<Abstract:AbstractGNFUserControl
    x:Class="GNF.WPFControls.GNFHistoryControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Abstract="clr-namespace:GNF.WPFControls">
    
    <UserControl.Resources>
        <DataTemplate x:Key="GPSDataTemplate">
                <StackPanel Orientation="Horizontal">
                <Label>Data Taken On:</Label>
                    <TextBlock Text="{Binding TakenAt,Mode=OneWay}"/>
                    <Label>,</Label>
                    <TextBlock Text="{Binding Longitude,Mode=OneWay}"/>
                    <Label>,</Label>
                    <TextBlock Text="{Binding Latitude,Mode=OneWay}"/>
                    <Label>,</Label>
                    <TextBlock Text="{Binding Altitude,Mode=OneWay}"/>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    
    <Grid Height="358" Width="464">
        <ListBox x:Name="HistoryListBox" ItemTemplate="{StaticResource GPSDataTemplate}" />
    </Grid>
</Abstract:AbstractGNFUserControl>